package com.signway.harmony_demo.point;

public class MyPoint extends ohos.agp.utils.Point{
    private float positionX;
    private float positionY;
    private boolean isLastPoint = false;

    public MyPoint(int crtX, int crtY) {
        super();
        this.positionX = crtX;
        this.positionY = crtY;
    }

    public MyPoint(float finalX, float finalY, boolean isLast) {
        super();
        this.positionX = finalX;
        this.positionY = finalY;
        this.isLastPoint = isLast;
    }

    public float getPositionX() {
        return positionX;
    }

    public float getPositionY() {
        return positionY;
    }

    public boolean isLastPoint() {
        return isLastPoint;
    }

    public void setLastPoint(boolean isLast) {
        isLastPoint = isLast;
    }
}
